package com.longtop.dbHelper;

import org.springframework.transaction.annotation.Transactional;

import com.longtop.model.Tables;

public interface IDbHelper {

	@Transactional(rollbackFor = Exception.class)
	public abstract void insertData(String file_name, String db_type) throws Exception;
	
	/**
	 * 删除带备份
	 * @param configFileName
	 * @param file_name
	 * @throws Exception
	 */
	@Transactional(rollbackFor = Exception.class)
	public abstract void deleteData(String configFileName,String file_name,String db_type) throws Exception;
	
	/**
	 * 删除不留备份
	 * @param file_name
	 * @throws Exception
	 */
	@Transactional(rollbackFor = Exception.class)
	public abstract void deleteData(String file_name) throws Exception;
	
	public abstract Tables getResultSet(String file_name, String db_type) throws Exception;

}